package 蓝桥杯.算法板子;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

/**
 * @Title: FastRead
 * @Author 贾金博
 * @Package 蓝桥杯.算法板子
 * @Date 2024/4/12 18:18
 * @description:
 */
public class FastRead {
    //这个作为输出的话 最后的时候 要加个flush
    static PrintWriter out = new PrintWriter(System.out);
    static FastReader sc = new FastReader();

    public static void main(String[] args) {
        // 排序的时候使用的是
        Long[] a = new Long[1010];
        for(int i = 1; i <= 3; ++ i ) {
            a[i] = sc.nextLong();
        }

        Arrays.sort(a, 1, 3 + 1);
        for(int i = 1; i <= 3; ++ i ) {
            out.print(a[i] + " ");
        }
        out.flush();
    }
}

//快读的模板
class FastReader{
    StringTokenizer st;
    BufferedReader br;
    public FastReader(){
        br=new BufferedReader(new InputStreamReader(System.in));
    }

    String next(){
        while (st==null||!st.hasMoreElements()){
            try {
                st=new StringTokenizer(br.readLine());
            }catch (IOException e){
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }
    int nextInt() {
        return Integer.parseInt(next());
    }

    long nextLong() {
        return Long.parseLong(next());
    }
    double nextDouble() {
        return Double.parseDouble(next());
    }
    String nextLine() {
        String str = "";
        try {
            str = br.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return str;
    }
}